home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / BASE_EFFECTS_SCRIPTS / base_shot_explosion.lua next >
Encoding:
Text File  |  2007-01-25  |  6.6 KB  |  258 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_BASESHOT_EXPLOSION)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 2
  27. PT.Material = ENMAT_PARTICLE_LIGHT
  28.  
  29.  
  30. PT.TextureName = "dot_alien_effect_explosion.dds"
  31.  
  32.  
  33.  
  34. PT.ParticlesPerSecond = 15.0;
  35. PT.InitialNumberOfParticles = 10.0;
  36. PT.BaseLifeTime = 0.8;
  37. PT.BaseLifeTimeVariance = 0.0;
  38. PT.BaseSpeed = 0.0;
  39. PT.BaseSpeedVariance = 0.0;
  40. PT.BaseAngle = 1.65;
  41. PT.BaseAngleVariance = 5.0;
  42. PT.BaseAngleSpeed = 0.0;
  43. PT.BaseAngleSpeedVariance = 0.0;
  44. PT.BaseAngleSpeedDirection = 0;
  45. local vzbzd4 = D3DXVECTOR3:new(0.0,1.0,0.0)
  46. PT.BaseDirection = vzbzd4
  47. vzbzd4:delete()
  48. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  49. PT.BaseDirectionVariance = vzbzd5
  50. vzbzd5:delete()
  51. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  52. PT.BasePosition = vzbzd6
  53. vzbzd6:delete()
  54. local vzbzd7 = D3DXVECTOR3:new(5.0,5.0,5.0)
  55. PT.BasePositionVariance = vzbzd7
  56. vzbzd7:delete()
  57. PT.BaseSize = 2.0;
  58. PT.BaseSizeVariance = 2.0;
  59.  
  60. -- color over time
  61. PT.ColorOverTimeR[1].TimePercent = 0.0;
  62. PT.ColorOverTimeR[1].Value = 0.5;
  63. PT.ColorOverTimeG[1].TimePercent = 0.0;
  64. PT.ColorOverTimeG[1].Value = 0.5;
  65. PT.ColorOverTimeB[1].TimePercent = 0.0;
  66. PT.ColorOverTimeB[1].Value = 0.5;
  67.  
  68. PT.ColorOverTimeR[2].TimePercent = 1.0;
  69. PT.ColorOverTimeR[2].Value = 1.0;
  70. PT.ColorOverTimeG[2].TimePercent = 1.0;
  71. PT.ColorOverTimeG[2].Value = 1.0;
  72. PT.ColorOverTimeB[2].TimePercent = 1.0;
  73. PT.ColorOverTimeB[2].Value = 1.0;
  74.  
  75. -- transparency over time
  76. PT.TransparencyOverTime[1].TimePercent = 0.0;
  77. PT.TransparencyOverTime[1].Value = 1.0;
  78.  
  79. PT.TransparencyOverTime[2].TimePercent = 0.02;
  80. PT.TransparencyOverTime[2].Value = 1.0;
  81.  
  82. PT.TransparencyOverTime[3].TimePercent = 0.4;
  83. PT.TransparencyOverTime[3].Value = 1.0;
  84.  
  85. PT.TransparencyOverTime[4].TimePercent = 1.0;
  86. PT.TransparencyOverTime[4].Value = 0.0;
  87.  
  88.  
  89. -- size over time
  90. PT.SizeOverTime[1].TimePercent = 0.0;
  91. PT.SizeOverTime[1].Value = 0.0;
  92.  
  93. PT.SizeOverTime[3].TimePercent = 1.0;
  94. PT.SizeOverTime[3].Value = 10.0;
  95.  
  96.  
  97. -- Speed over time
  98. PT.SpeedOverTime[1].TimePercent = 0.0;
  99. PT.SpeedOverTime[1].Value = 10.0;
  100.  
  101. PT.SpeedOverTime[2].TimePercent = 0.5;
  102. PT.SpeedOverTime[2].Value = 0.0;
  103.  
  104. PT.SpeedOverTime[3].TimePercent = 1.0;
  105. PT.SpeedOverTime[3].Value = 0.0;
  106.  
  107. -- Tangent Speed over time
  108. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  109. PT.TangentSpeedOverTime[1].Value = 0.0;
  110.  
  111. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  112. PT.TangentSpeedOverTime[2].Value = 0.0;
  113.  
  114.  
  115. -- GravityAcceleration over time
  116. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  117. PT.GravityAccelerationOverTime[1].Value = 0.0;
  118.  
  119. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  120. PT.GravityAccelerationOverTime[2].Value = 0.0;
  121.  
  122. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  123. PT.GravityAccelerationOverTime[3].Value = 0.0;
  124.  
  125. -- AngleSpeed over time
  126. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  127. PT.AngleSpeedOverTime[1].Value = 0.0;
  128.  
  129. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  130. PT.AngleSpeedOverTime[2].Value = 0.0;
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. PT = Emitter.ParticleTypesParams[2]
  145. PT.IsEmitterLocked = false
  146. PT.DrawOrder = 1
  147. PT.Material = ENMAT_SIMPLEPARTICLE
  148.  
  149.  
  150. --PT.TextureName = "dot_alien_effect_explosion.dds"
  151. PT.TextureName = "environment_effect_cloud4.dds"
  152.  
  153.  
  154.  
  155. PT.ParticlesPerSecond = 15.0;
  156. PT.InitialNumberOfParticles = 5.0;
  157. PT.BaseLifeTime = 1.8;
  158. PT.BaseLifeTimeVariance = 0.0;
  159. PT.BaseSpeed = 0.0;
  160. PT.BaseSpeedVariance = 0.0;
  161. PT.BaseAngle = 1.65;
  162. PT.BaseAngleVariance = 5.0;
  163. PT.BaseAngleSpeed = 1.0;
  164. PT.BaseAngleSpeedVariance = 2.0;
  165. PT.BaseAngleSpeedDirection = 0;
  166. local vzbzd8 = D3DXVECTOR3:new(0.0,1.0,0.0)
  167. PT.BaseDirection = vzbzd8
  168. vzbzd8:delete()
  169. local vzbzd9 = D3DXVECTOR3:new(0.0,0.0,0.0)
  170. PT.BaseDirectionVariance = vzbzd9
  171. vzbzd9:delete()
  172. local vzbzd10 = D3DXVECTOR3:new(0,0,0)
  173. PT.BasePosition = vzbzd10
  174. vzbzd10:delete()
  175. local vzbzd11 = D3DXVECTOR3:new(10.0,0.0,10.0)
  176. PT.BasePositionVariance = vzbzd11
  177. vzbzd11:delete()
  178. PT.BaseSize = 4.0;
  179. PT.BaseSizeVariance = 2.0;
  180.  
  181. -- color over time
  182. PT.ColorOverTimeR[1].TimePercent = 0.0;
  183. PT.ColorOverTimeR[1].Value = 0.5;
  184. PT.ColorOverTimeG[1].TimePercent = 0.0;
  185. PT.ColorOverTimeG[1].Value = 0.5;
  186. PT.ColorOverTimeB[1].TimePercent = 0.0;
  187. PT.ColorOverTimeB[1].Value = 0.5;
  188.  
  189. PT.ColorOverTimeR[2].TimePercent = 1.0;
  190. PT.ColorOverTimeR[2].Value = 0.5;
  191. PT.ColorOverTimeG[2].TimePercent = 1.0;
  192. PT.ColorOverTimeG[2].Value = 0.5;
  193. PT.ColorOverTimeB[2].TimePercent = 1.0;
  194. PT.ColorOverTimeB[2].Value = 0.5;
  195.  
  196. -- transparency over time
  197. PT.TransparencyOverTime[1].TimePercent = 0.0;
  198. PT.TransparencyOverTime[1].Value = 0.0;
  199.  
  200. PT.TransparencyOverTime[2].TimePercent = 0.3;
  201. PT.TransparencyOverTime[2].Value = 0.3;
  202.  
  203. PT.TransparencyOverTime[3].TimePercent = 0.7;
  204. PT.TransparencyOverTime[3].Value = 0.3;
  205.  
  206. PT.TransparencyOverTime[4].TimePercent = 1.0;
  207. PT.TransparencyOverTime[4].Value = 0.0;
  208.  
  209.  
  210. -- size over time
  211. PT.SizeOverTime[1].TimePercent = 0.0;
  212. PT.SizeOverTime[1].Value = 1.0;
  213.  
  214. PT.SizeOverTime[3].TimePercent = 1.0;
  215. PT.SizeOverTime[3].Value = 2.5;
  216.  
  217.  
  218. -- Speed over time
  219. PT.SpeedOverTime[1].TimePercent = 0.0;
  220. PT.SpeedOverTime[1].Value = 10.0;
  221.  
  222. PT.SpeedOverTime[2].TimePercent = 0.5;
  223. PT.SpeedOverTime[2].Value = 0.0;
  224.  
  225. PT.SpeedOverTime[3].TimePercent = 1.0;
  226. PT.SpeedOverTime[3].Value = 0.0;
  227.  
  228. -- Tangent Speed over time
  229. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  230. PT.TangentSpeedOverTime[1].Value = 0.0;
  231.  
  232. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  233. PT.TangentSpeedOverTime[2].Value = 0.0;
  234.  
  235.  
  236. -- GravityAcceleration over time
  237. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  238. PT.GravityAccelerationOverTime[1].Value = 0.0;
  239.  
  240. PT.GravityAccelerationOverTime[2].TimePercent = 0.4;
  241. PT.GravityAccelerationOverTime[2].Value = 0.0;
  242.  
  243. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  244. PT.GravityAccelerationOverTime[3].Value = 0.0;
  245.  
  246. -- AngleSpeed over time
  247. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  248. PT.AngleSpeedOverTime[1].Value = 0.0;
  249.  
  250. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  251. PT.AngleSpeedOverTime[2].Value = 0.0;
  252.  
  253.  
  254.  
  255. --
  256. -- end particle system description
  257. --
  258.